package com.wenhai.springbook.circular;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * setter 循环依赖示例
 *
 * @author wenhai
 * @date   2020/10/10
 */
public class SetterCircularReferenceDemo {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("META-INF/setter-circular-reference.xml");
        ctx.getBean("a");
        ctx.getBean("b");
    }
}
